import React from 'react';
import { Table } from '@pxxtech/web';
import { data } from './data';
import { columns } from './columns';

console.log(data);

const Basic = () => {
  const renderRow = ({ row, col, data }) => {
    if (col.dataIndex === 'requestNo') {
      return <div>requestNo</div>;
    }
  };
  return (
    <div className="pxx-web">
      <div style={{ height: 500 }}>
        <Table
          data={data}
          columns={columns}
          rowKey="requestNo"
          renderRow={renderRow}
        />
      </div>
    </div>
  );
};

export default Basic;
